package com.stq.toutiao.model.response;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author stq
 * @date 2020-01-23 15:31
 */
public class TouTiaoAccessToken extends TouTiaoBase {

    /**
     * 获取的 access_token
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * access_token 有效时间，单位：秒
     */
    @JSONField(name = "expires_in")
    private Integer expiresIn;

    public TouTiaoAccessToken() {
    }

    public TouTiaoAccessToken(Integer errcode, String errmsg) {
        super(errcode, errmsg);
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }
}
